home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-07-18 | 864 b | 33 lines | [TEXT/GEOL] |
- Item 6111703 13-July-89 18:35
-
- From: D2234 Cock, Calvin, PRT
-
- To: D1382 MasterPlan, Chris Ovard, PRT
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: RE Dispactching TCommands
-
- Tom,
-
- I had the same bug reach up and byte me several times. If you look at the
- source code for the TApplication.PerformCommand you will see the following:
-
- if gEventLevel = 1 THEN
- UnloadAllSegments;
-
- And this does exactly what it says. So when you call PerformCommand your
- calling code segment is unloaded and....pfui. The way I got around the
- problems is to do this:
-
- gEventLevel := gEventLevel + 1;
- gApplication.PerformCommand ( YourFavoriteCommandHere );
- gEventLevel := gEventLevel -1;
-
- Hopes this helps you out.
-
- Calvin Cock
- Applications Design Group
-
-
-